<?php
$cs = Yii::app()->getClientScript();
$cs->registerCSSFile(Yii::app()->request->baseUrl . "/css/admin/manage.css");
$cs->registerCSSFile(Yii::app()->request->baseUrl . "/css/slider/style1.css");
$cs->registerScriptFile(Yii::app()->request->baseUrl . "/js/slider/jquery.easing.js");
$cs->registerScriptFile(Yii::app()->request->baseUrl . "/js/slider/script.js");
$cs->registerScript('sliderScipt', '
      $(document).ready( function(){	
                var buttons = { previous:$("#frontpic .lof-previous") ,
                    next:$("#frontpic .lof-next") };
						
                $obj = $("#frontpic").lofJSidernews( { interval : 4000,
                    direction		: "opacitys",	
                    easing			: "easeInOutExpo",
                    duration		: 1200,
                    auto		 	: true,
                    maxItemDisplay  : 4,
                    navPosition     : "horizontal", // horizontal
                    navigatorHeight : 32,
                    navigatorWidth  : 80,
                    mainWidth:855,
                    buttons			: buttons} );	
            });   
   

    ', CClientScript::POS_READY);
?>
<!------------------------------------- NEWS_SLIDER ------------------------------------------------->

<div id="frontpic" class="lof-slidecontent">
    <div class="preload"><div></div></div>
    <!-- MAIN CONTENT --> 

    <div class="lof-main-outer">

        <ul class="lof-main-wapper">
            <?php
            $folderUpload = hash('sha512', "newFlash" . "1");
            foreach ($model as $data) {
                ?>
                <li>
                    <img src="<?php echo Yii::app()->request->baseurl . "/file/" . $folderUpload . "/" . $data['image']; ?>" width="855px" height="340px" />           

                </li> 
            <?php } ?>



        </ul>  	
    </div>
    <!-- END MAIN CONTENT --> 
    <!-- NAVIGATOR -->
    <div class="lof-navigator-wapper">
        <div onclick="return false" href="" class="lof-previous">Previous</div>

        <div class="lof-navigator-outer">

            <ul class="lof-navigator">
                <?php
                $folderUpload = hash('sha512', "newFlash" . "1");
                foreach ($model as $data) {
                    ?>
                    <li>
                        <img src="<?php echo Yii::app()->request->baseurl . "/file/" . $folderUpload . "/" . $data['image']; ?>" width="70px" height="25px" />           
                    </li> 
                <?php } ?>

            </ul>
        </div>
        <div onclick="return false" href="" class="lof-next">Next</div>
    </div> 
</div> 

<div style="
     width:90%;  
     margin-left: 51.5px; 
     padding-top: 5px; 
     padding-bottom: 5px;  
     text-align: center; 
     height: 20px; 
     border-top: 2px solid #d5e9f3; 
     border-bottom: 2px solid #d5e9f3; 
     background-color: #ffffff; 
     font-weight: bold;">Mitra Kami</div>
<div id="ourpartner">
    <img id="mostleft" src="images/mandikdasmen.jpg"/>
    <img src="images/dikti.jpg"/>
    <img src="images/unj.jpg"/>
</div>
